﻿using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using MediatR;

namespace WeatherHistory.Api.CommandsQueries.Commands.Accounts.Update;

public class UpdateAccountsCommandRequest : IRequest<UpdateAccountsCommandResponse>
{
    [JsonIgnore]
    public long AccountId { get; set; }

    [Required]
    public string FirstName { get; set; } = null!;

    [Required]
    public string LastName { get; set; } = null!;

    [Required]
    [EmailAddress]
    public string Email { get; set; } = null!;

    [Required]
    public string Password { get; set; } = null!;
}